package com.qf.sportsevent.activity;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebViewClient;

import com.qf.sportsevent.R;
import com.qf.sportsevent.databinding.ActivityWebBinding;

public class WebActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityWebBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_web);
        String videoUrl = getIntent().getStringExtra("video");
        binding.web.setWebViewClient(new WebViewClient());
        binding.web.loadUrl(videoUrl);
    }
}
